package com.mo.domain;

import com.alibaba.excel.annotation.ExcelProperty;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;
import org.springframework.stereotype.Repository;

import java.util.Date;

/**
 * @author msy
 * @date 2022/2/22
 */
@Repository
@Data
public class User {
    private Long id;

    @ExcelProperty({"基本信息","姓名"})
    private String name;

    @ExcelProperty({"基本信息","电话"})
    private String phone;

    @ExcelProperty(value = "地址")
    private String address;

    @ExcelProperty(value = "生日")
    @JsonFormat(pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date birthday;

}
